7af9a3696175d159af1b496810c94fe52e180810,uikit/src/main/java/com/midtrans/sdk/uikit/fragments/PaymentTransactionStatusFragment.java,PaymentTransactionStatusFragment,setPaymentType,#,318

Before Change


        if (transactionResponse == null) {
            return;
        }
        if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_epay_bri))) {
            paymentTypeTextView.setText(R.string.epay_bri);
        } else if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_mandiri_bill_payment))) {
            paymentTypeTextView.setText(R.string.mandiri_bill_payment);
        } else if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_cimb_clicks))) {
            paymentTypeTextView.setText(R.string.cimb_clicks);
        } else if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_mandiri_ecash))) {
            paymentTypeTextView.setText(R.string.mandiri_e_cash);
        } else if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_mandiri_clickpay))) {
            paymentTypeTextView.setText(R.string.mandiri_click_pay);
        } else if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_indomaret))) {
            paymentTypeTextView.setText(R.string.indomaret);
        } else if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_credit_debit))) {
            paymentTypeTextView.setText(R.string.credit_card);
        } else if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_indosat_dompetku))) {
            paymentTypeTextView.setText(R.string.indosat_dompetku);
        } else if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_bank_transfer))) {
            paymentTypeTextView.setText(R.string.bank_transfer);
        } else if (transactionResponse.getPaymentType().equalsIgnoreCase(getString(R.string.payment_bca_click))) {
            paymentTypeTextView.setText(getString(R.string.payment_method_bca_klikpay));

After Change


        } else if (transactionResponse.getPaymentType().equals(PaymentType.CREDIT_CARD)) {
            paymentTypeTextView.setText(R.string.credit_card);
            buttonInstruction.setVisibility(View.GONE);
        } else if (transactionResponse.getPaymentType().equals(PaymentType.INDOSAT_DOMPETKU)) {
            paymentTypeTextView.setText(R.string.indosat_dompetku);
        } else if (transactionResponse.getPaymentType().equals(PaymentType.BCA_KLIKPAY)) {
            paymentTypeTextView.setText(getString(R.string.payment_method_bca_klikpay));
        } else if (transactionResponse.getPaymentType().equals(PaymentType.KIOSON)) {
            paymentTypeTextView.setText(getString(R.string.payment_method_kioson));
        } else if (transactionResponse.getPaymentType().equals(PaymentType.GCI)) {
            paymentTypeTextView.setText(getString(R.string.payment_method_gci));
        } else if (transactionResponse.getPaymentType().equals(getString(R.string.payment_bank_transfer)) ||
                transactionResponse.getPaymentType().equals(PaymentType.BCA_VA) ||
                transactionResponse.getPaymentType().equals(PaymentType.PERMATA_VA) ||
                transactionResponse.getPaymentType().equals(PaymentType.ALL_VA)) {
            paymentTypeTextView.setText(getString(R.string.bank_transfer));
        }
    }